#!/usr/local/bin/python
# -*- coding: utf8 -*-

def helpinfo():
    print "\n\tECSHOP search.php SQL injection"
    print "\teg:search.php_sql.py urllist.txt"
    print "\turllist.txt meams urls file"
    print "\t-------------------------------\n"

if __name__=="__main__":
    import sys,time
    if len(sys.argv) !=2:
        helpinfo()
        sys.exit(1)

    strUrlnew = sys.argv[1] #

    fp = open(strUrlnew, 'r')
    count = 0
    try:
        for oneUrl in fpNew:
            count = count + 1
            if (count % 20) == 0:
                time.sleep(300)
            c = s.find('http://')
            if c == 0:
                print "Starting webbrowser: " + oneUrl
                webbrowser.open_new_tab(oneUrl)
    except:
        print oneUrl + "failed"
    fp.close(




